home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6765 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  881 b 

  1. Path: unix.sri.com!usenet
  2. From: mklenk@updike.sri.com (Mark Klenk)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Watch out!  C "gotcha!"
  5. Date: 14 Feb 1996 22:33:22 GMT
  6. Organization: SRI International
  7. Message-ID: <4ftnvi$6mm@unix.sri.com>
  8. References: <4fthhh$7th@blackice.winternet.com>
  9. Reply-To: mklenk@updike.sri.com
  10. NNTP-Posting-Host: 204.75.161.40
  11.  
  12. Michael Schwarz wrote:
  13. >
  14. >Many of you may already know this, but even after ten years of coding
  15. >in C, this took my by surprise at first.  A co-worker and I were looking
  16. >at some library C code where I work and we noticed that the "default"
  17. >clause of one of the switches was misspelled as "defalt."
  18.  
  19.     I tried compiling your sample program.
  20.     When I compile with 'gcc -Wall', I get the following warning:
  21.  
  22. foo.c: In function `main':
  23. foo.c:15: warning: label `defalt' defined but not used
  24.  
  25.  
  26. ---
  27.  
  28. mklenk@coronacorp.com       (Mark Klenk)
  29.  
  30.  
  31.  
  32.